package com.fjnu.dao;

import com.fjnu.entity.Tag;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
@Mapper
public interface TagDao {
    int insert(Tag tag);
    int insertArticleTag(@Param("articleId") Integer articleId, @Param("tagId") Integer tagId);
    List<Tag> selectAll();
    int delete(Integer tagId);
    Tag selectById(Integer id);
}